package org.jsola.hr.web;

import io.swagger.annotations.Api;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author
 */
@Api(tags = "hr-微信公众号")
public interface WeChatOfficialAccountControllerAPI {

    /**
     * 连接平台测试
     * @param signature 签名
     * @param timestamp 时间戳
     * @param nonce 随机数
     * @param echostr 回执
     * @return 回执
     */
    void weChatGet(String signature, String timestamp, String nonce, String echostr, HttpServletRequest request, HttpServletResponse response);

    /**
     * 连接平台测试
     * @param request HttpServletRequest
     * @return 回执
     */
    void weChatPost(HttpServletRequest request, HttpServletResponse response) throws IOException;


}
